package com.astoolkit.workflow.util
{
	import flash.utils.flash_proxy;
	
	import mx.core.mx_internal;
	import mx.utils.ObjectProxy;
	import mx.utils.object_proxy;
	
	use namespace flash_proxy;
	[Bindable]
	public class DataWrapper extends ObjectProxy
	{
		
		public function DataWrapper(item:Object=null, uid:String=null, proxyDepth:int=-1)
		{
			super(item, uid, proxyDepth);
		}
		
		override flash_proxy function getProperty(name:*):*
		{
			if( this.object_proxy::object.hasOwnProperty( name ) )
				return object_proxy::object[ name ];
			else
				return null;
		}
		
		public function get val() : *
		{
			return object_proxy::object;
		}
	}
}